home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13946 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  824 b 

  1. Path: prairienet.org!wemccaug
  2. From: wemccaug@prairienet.org (Wendy E. McCaughrin)
  3. Newsgroups: comp.lang.c++
  4. Subject: scope of operators
  5. Date: 28 Mar 1996 03:47:06 GMT
  6. Organization: University of Illinois at Urbana
  7. Message-ID: <4jd23q$jp4@vixen.cso.uiuc.edu>
  8. Reply-To: wemccaug@prairienet.org (Wendy E. McCaughrin)
  9. NNTP-Posting-Host: firefly.prairienet.org
  10.  
  11.  
  12.  It is my understanding that if I declare 'f' to be a
  13.  friend of a base class, it should apply to objects of
  14.  the derived class with impunity. For instance, if 'f'
  15.  is supposed to take one argument that is an object of
  16.  the base class and I pass an object of the derived
  17.  class instead, should I not expect conformity? I am not
  18.  doing anything in the derived class object apart from
  19.  what it has inherited from the base class at all.
  20.  
  21.  Thanks for any input,
  22.  
  23.  wem
  24.  
  25.  
  26.